package com.aihna.mall.domain.vo;

import com.aihna.common.translation.annotation.Translation;
import com.aihna.common.translation.constant.TransConstant;
import com.aihna.mall.domain.StoreProductCate;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.aihna.common.excel.annotation.ExcelDictFormat;
import com.aihna.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 商品分类视图对象 vvl_store_product_cate
 *
 * @author Joseph.Chen
 * @date 2024-03-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = StoreProductCate.class)
public class StoreProductCateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    @ExcelProperty(value = "分类ID")
    private Long id;

    /**
     * 父类ID
     */
    @ExcelProperty(value = "父类ID")
    private Long catePid;

    /**
     * 分类名称
     */
    @ExcelProperty(value = "分类名称")
    private String name;

    /**
     * 图片地址
     */
    private String image;


    @ExcelProperty(value = "图片地址")
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "image")
    private String imageUrl;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 状态，0：有效/启用；1：无效
     */
    @ExcelProperty(value = "状态，0：有效/启用；1：无效")
    private Integer status;


}
